global T_TorgoParams
global PhoneCode;
global art_x;
global art_y;
global tv_i

T_TorgoParams.EMASampleRate = 500;
T_TorgoParams.wavSampleRate = 16000;
T_TorgoParams.feat.W      = 'e0dD';
T_TorgoParams.feat.NC     = 12;      % no. cepstral coefficients
T_TorgoParams.feat.Dim    = 42;      % a combination of the above two
T_TorgoParams.feat.P      = floor(3*log(T_TorgoParams.wavSampleRate));            % number of filters in filterbank
T_TorgoParams.feat.N      = 2*(T_TorgoParams.wavSampleRate / T_TorgoParams.EMASampleRate);
T_TorgoParams.feat.INC    = floor(T_TorgoParams.feat.N/2);

[ret, name] = system('hostname');   
if ret ~= 0,
   if ispc
      name = getenv('COMPUTERNAME');
   else      
      name = getenv('HOSTNAME');      
   end
end
name = lower(name);

if regexp( name, 'Discovery' )
  dir_root = '/Users/frank/UofT/Experiments/';
else
  dir_root = '/u/frank/cl8/';
end
T_TorgoParams.dir_Models  = [dir_root '/Torgo/ICASSP/Models/'];
T_TorgoParams.dir_Data    = [dir_root '/Torgo/ICASSP/Data'];
T_TorgoParams.dir_Results = [dir_root '/Torgo/ICASSP/Results'];
T_TorgoParams.dir_NemData = [dir_root '/data/Nemours/SPEECH/SENT/'];

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%synchronizeAudio('/Users/frank/UofT/Torgo/src/Experiments/ResearchProposal/Config/syncAudio/test')

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PREPARE DATA
%speakers= {'BB','BK', 'BV', 'FB', 'JF','LL', 'MH', 'RK', 'RK', 'RL', 'SC'};
%speakers = {'BB'}
%for id=1:length(speakers)
%  [TrainData, TestData] = icasspPrepareData([T_TorgoParams.dir_NemData, speakers{id}, '/'], 'NEMOURS', T_TorgoParams.feat, ...
%                                            0.9, 0);
%  save([T_TorgoParams.dir_Data, '/' speakers{id}, '_Train.mat'], 'TrainData', '-mat');
%  save([T_TorgoParams.dir_Data, '/' speakers{id}, '_Test.mat'], 'TestData', '-mat');
%end
%[TrainData, TestData] = c2518prepareData([T_TorgoParams.dir_Data, ...
%                    '/msak0_v1.1/'], 'MOCHA', T_TorgoParams.feat, 0.9, 0);
%save('/nobackup/frank/2518/data/MSAK_Train.mat', 'TrainData', '-mat');
%save('/nobackup/frank/2518/data/MSAK_Test.mat', 'TestData', '-mat');

% DEFINITIONS!!!
PhoneCode.a = 0;
PhoneCode.iX = 1;
PhoneCode.jh = 2;
PhoneCode.d = 3;
PhoneCode.sil = 4;
PhoneCode.y = 5;
PhoneCode.u = 6;
PhoneCode.k = 7;
PhoneCode.iy = 8;
PhoneCode.g = 9;
PhoneCode.sh = 10;
PhoneCode.aa = 11;
PhoneCode.t = 12;
PhoneCode.th = 13;
PhoneCode.e = 14;
PhoneCode.v = 15;
PhoneCode.XX = 16;
PhoneCode.s = 17;
PhoneCode.uu = 18;
PhoneCode.oo = 19;
PhoneCode.b = 20;
PhoneCode.z = 21;
PhoneCode.oi = 22;
PhoneCode.ow = 23;
PhoneCode.w = 24;
PhoneCode.r = 25;
PhoneCode.ei = 26;
PhoneCode.ii = 27;
PhoneCode.dh = 28;
PhoneCode.breath = 29;
PhoneCode.h = 30;
PhoneCode.ch = 31;
PhoneCode.X = 32;
PhoneCode.f = 33;
PhoneCode.i = 34;
PhoneCode.ou = 35;
PhoneCode.n = 36;
PhoneCode.zh = 37;
PhoneCode.m = 38;
PhoneCode.eir = 39;
PhoneCode.l = 40;
PhoneCode.p = 41;
PhoneCode.uh = 42;
PhoneCode.ng = 43;
PhoneCode.ai = 44;
PhoneCode.o = 45;

art_x.UI = 1;
art_y.UI = 6;
art_x.LI = 2;
art_y.LI = 7;
art_x.UL = 3;
art_y.UL = 8;
art_x.LL = 4;
art_y.LL = 9;
art_x.TT = 5;
art_y.TT = 10;
art_x.TB = 11;
art_y.TB = 16;
art_x.TD = 12;
art_y.TD = 17;
art_x.V  = 13;
art_y.V  = 18;
art_x.BN = 15;
art_y.BN = 20;

tv_i.iVEL=1;
tv_i.iLTH=2;
tv_i.iLA =3;
tv_i.iLP =4;
tv_i.iLD =5;
tv_i.iTTCL=6;
tv_i.iTTCD=7;
tv_i.iTDCL=8;
tv_i.iTDCD=9;
tv_i.iGLO=10;



addpath ./netlab3.3
addpath(genpath('./FullBNT-1.0.4/'))


